package com.stu.spring.context.chapter07.aop.demo;

import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AopTestDemo {

	@Test
	public void test01(){
		try{
			ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("chapter07\\aopDemoTest.xml");
			AopDemoBean bfBean = (AopDemoBean) ctx.getBean("aopDemoBean");
			bfBean.aopTest();
		} catch (Exception e){
			e.printStackTrace();
		}
	}

}
